package edu.mis.modules.orderDetailRoom;

import com.jfinal.core.Controller;


public class OrderDetailRoomController extends Controller{
    public static OrderDetailRoomService service = new OrderDetailRoomService();
    public void index() {
        render("orderDetailRoom.html");
    }
    public void list() {
        setAttr("data",service.findAllRecord());
//    	setAttr("data",service.findAll());
        renderJson();
    }
    public void view_eachDetailRoom(){
        setAttr("orderListId",getParaToInt("orderListId"));
        render("eachDetailRoom.html");
    }
    public void eachDetailRoom(){
        setAttr("data",service.findRoomByOrderListId(getParaToInt("orderListId")));
        renderJson();
    }

}
